/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.UUID;

/**
 * <p>Project: javase - Uuid1
 * <p>Powered by webrx On 2021-11-23 16:01:06
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Uuid1 {
    public static void main(String[] args) {
        //全球唯一的随机id  分布式项目
        var uid = UUID.randomUUID();
        //e6d3fe6c-506d-43c2-83ae-862d9812b1f4
        //13766a92-ecdb-4dca-bb9e-070401c5981a
        System.out.println(uid.toString());

        //雪花算法 snow flake 随机id 234234242342342 43  long
    }
}
